package com.qf.pojo;

import java.util.Date;

/**
 * @author Kuke
 * @date 2022/3/16 9:21
 * 学生实体类里面的属性和表中的字段一一对应
 *
 */
public class Student {
    /**
     * CREATE TABLE `student` (
     *   `id` int NOT NULL AUTO_INCREMENT,
     *   `name` varchar(10) DEFAULT NULL,
     *   `age` int DEFAULT NULL,
     *   `address` varchar(30) DEFAULT NULL,
     *   `birthday` datetime DEFAULT NULL,
     *   PRIMARY KEY (`id`)
     */
    private Integer id ;

    private String name ; //姓名

    private Integer age ; //年龄

    private String address  ;//地址


    private Date birthday  ;//出生日期

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", address='" + address + '\'' +
                ", birthday=" + birthday +
                '}';
    }
}
